import Http from "@/http"

export function pageApi(params:any) {
    return Http.get('role/page', params)
}

export function saveApi(params:any) {
    return params.id ? Http.put('role/edit/' + params.id, params) : Http.post('role/add', params)
}

export function listApi() {
    return Http.get('role/list')
}

export function deleteApi(id) {
    return Http.delete('role/delete/' + id)
}